//
//  MeTableViewCell.m
//  xxShare
//
//  Created by 柳麟喆 on 2018/3/12.
//  Copyright © 2018年 lzLiu. All rights reserved.
//

#import "MeTableViewCell.h"

@implementation MeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    //配置界面
    _myImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 20, 80, 80)];
    _myImageView.layer.cornerRadius = 40;
    _myImageView.layer.masksToBounds = YES;
    _myImageView.image = [UIImage imageNamed:@"duck.png"];
    
    _name = [[UILabel alloc]initWithFrame:CGRectMake(_myImageView.llz_right + 10, 20, 100, 30)];
    _name.text = @"Kylin";
    _name.font = [UIFont fontWithName:@"PingFangSC-Thin" size:14];
    
    _breif = [[UILabel alloc]initWithFrame:CGRectMake(_myImageView.llz_right + 10, _name.llz_bottom + 5, 100, 30)];
    _breif.text = @"乐此不疲";
    _breif.font = [UIFont fontWithName:@"PingFangSC-Thin" size:14];
    
    _energy = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH - 110, 35, 100, 35)];
    _energy.text = @"能量：50/100";
    _energy.font = [UIFont fontWithName:@"PingFangSC-Thin" size:14];
    
    _progressView = [[UIProgressView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH - 110, _energy.llz_bottom + 5, 100, 30)];
    _progressView.progress = 0.5;
    
    [self addSubview:_myImageView];
    [self addSubview:_name];
    [self addSubview:_breif];
    [self addSubview:_energy];
    [self addSubview:_progressView];
    self.backgroundColor = LLZRGBA(249, 249, 241, 1);
    
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
